import {
  proxyJava,
  proxyPhp
} from './root.js'
import requestJava from "@/api/requestJava.js";
import requestPhp from "@/api/requestPhp.js";


// --------------直播java(php列表)--------------

//直播详情
export const liveInfo = (data) =>
  requestJava.post1(`${proxyJava}sys/live/info`, data);

//ppt图片
export const listImg = (data) =>
  requestJava.post1(`${proxyJava}sys/h5file/listImg`, data);

//评论相关
export const commentsInfo = (data) =>
  requestJava.post1(`${proxyJava}sys/comments/info`, data);

//获取违禁词
export const getIllegalWord = (data) =>
  requestJava.post1(`${proxyJava}sys/live/getIllegalWord`, data);

//评论插入
export const commentsInsert = (data) =>
  requestJava.post1(`${proxyJava}sys/comments/insert`, data);

//更新在线数量
export const updateOnLineNumber = (data) =>
  requestJava.post1(`${proxyJava}sys/live/updateOnLineNumber`, data);


//更新在线数量
export const weChatLogin = (data) =>
  requestJava.post1(`${proxyJava}sys/liveuser/weChatLogin`, data);


//更新在线数量
export const getTabByLiveId = (data) =>
  requestJava.post1(`${proxyJava}sys/live/getTabByLiveId`, data);









//-----------------php接口--------------

//bindphone 页面

//验证码接口
export const sendMsgCode = (data) =>
  requestPhp.post(`${proxyPhp}index/user/sendMsgCode`, data);

//新用户 微信（第三方）直接绑定手机号
export const thirdChoosePerson = (data) =>
  requestPhp.post(`${proxyPhp}index/user/thirdChoosePerson`, data);

//微信（第三方）选择绑定的账号
export const choosePerson = (data) =>
  requestPhp.post(`${proxyPhp}index/user/choosePerson`, data);

//检测用户是否绑定过手机号(这个放在直播页面进行判断跳转,是否可以根据路由守卫来直接判断)
export const checkBindMobile = (data) =>
  requestPhp.post(`${proxyPhp}index/user/checkBindMobile`, data);

//绑定手机号(这个unionid)
export const bindMoblie = (data) =>
  requestPhp.post(`${proxyPhp}index/user/bindMoblie`, data);

//获取2个对比账号的信息
export const getChoosePersonInfo = (data) =>
  requestPhp.post(`${proxyPhp}index/user/getChoosePersonInfo`, data);

//绑定成功清除session
export const loginOut = (data) =>
requestPhp.post(`${proxyPhp}index/user/loginOut`, data);

//login 页面

export const checkLoginStatus = (data) =>
requestPhp.post(`${proxyPhp}index/login/checkLoginStatus`, data);

// 微信登录相关
export const getWechatInfo = (data) =>
requestPhp.post(`${proxyPhp}index/login/getWechatInfo`, data);

export const checkMobile = (data) =>
requestPhp.post(`${proxyPhp}index/login/checkMobile`, data);

export const checkSms = (data) =>
requestPhp.post(`${proxyPhp}index/login/checkSms`, data);


//职位相关
export const getLiveZpPagelist = (data) =>
requestPhp.post(`${proxyPhp}live/index/getLiveZpPagelist`, data);

//投递
export const sendPerson = (data) =>
requestPhp.post(`${proxyPhp}live/delivery/sendPerson`, data);

//判断简历是否完善
export const checkResumeComplete = (data) =>
requestPhp.post(`${proxyPhp}live/delivery/checkResumeComplete`, data);


//职位轮播
export const getRecommendZpList = (data) =>
requestPhp.post(`${proxyPhp}live/index/getRecommendZpList`, data);